<!doctype html>
<head>
        <meta name="keywords" content="羽毛球，公告，球场，教练">
		<meta name="charset" content="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/jquery.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/bootstrap.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/md5.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/jquery-form.js"></script>
</head>		


		<div class="content content_hastab">	
		<div><span >公告编号: </span><span id="announce_id"></span></div>
		<div><span >公告标题: </span><span id="announce_title"></span></div>
		<div><span >公告类型: </span><span id="announce_type"></span></div>
		<div><span >公告内容: </span<div>
		<div><textarea id="announce_content" name="announce_content" rows="4" cols="20" ></textarea></div>
		<div><span >公告图片: </span></div>
		<div><img id="announce_picture" src="" height="150px" width="200px"></img></div>
		<div><span >是否公开: </span><span id="if_public"></span></div>
	    </div>	


<script type="text/javascript">
       
       $(function(){
		$.post('__URL__/announceDetail',{'announce_id':parent.selected},function(resultList){ 	
             
			  announceJson=resultList.result;
			   
			  document.getElementById("announce_id").innerHTML=announceJson.announce_id;
              document.getElementById("announce_title").innerHTML=announceJson.announce_title;
			
			
			  document.getElementById("announce_content").innerHTML=announceJson.announce_content;	  
			  document.getElementById("announce_content").disabled = true;

			  document.getElementById("announce_picture").src=announceJson.announce_picture;
			  
			  switch(announceJson.announce_type)
			  {
			     case "0":
				 document.getElementById("announce_type").innerHTML="系统公告";
				 break;
				 case "1":
				 document.getElementById("announce_type").innerHTML="球馆公告";
				 break;
				 case "2":
				 document.getElementById("announce_type").innerHTML="教练公告";
				 break;
				 case "3":
				 document.getElementById("announce_type").innerHTML="球会公告";
				 break;
			  }
			  switch(announceJson.if_public)
			  {
			    case "0":
				 document.getElementById("if_public").innerHTML="不公开";
				 break;
				 case "1":
				 document.getElementById("if_public").innerHTML="公开";
			  }

			  
    	     },'json');  
			
		});
</script>